﻿using System;
using UnityEngine;

// Token: 0x020001C1 RID: 449
public class CutAct_SE : CutAction
{
	// Token: 0x06000B9F RID: 2975 RVA: 0x00043DA8 File Offset: 0x00041FA8
	public CutAct_SE(CutScene cutScene) : base(cutScene, CUTACT.SE)
	{
	}

	// Token: 0x06000BA0 RID: 2976 RVA: 0x00043DB4 File Offset: 0x00041FB4
	public CutAct_SE(CutScene cutScene, float time, string file) : base(cutScene, CUTACT.SE, time)
	{
		this.file = file;
	}

	// Token: 0x06000BA1 RID: 2977 RVA: 0x00043DC8 File Offset: 0x00041FC8
	public override object Clone()
	{
		return new CutAct_SE(this.cutScene);
	}

	// Token: 0x06000BA2 RID: 2978 RVA: 0x00043DD8 File Offset: 0x00041FD8
	public override void Load(TagText.Element element, int order)
	{
		base.Load(element, order);
		this.file = TagTextUtility.Load_String(element, "file", 0);
	}

	// Token: 0x06000BA3 RID: 2979 RVA: 0x00043DF4 File Offset: 0x00041FF4
	public override void Save(TagText.Element element)
	{
		base.Save(element);
		element.AddAttribute("file", this.file);
	}

	// Token: 0x06000BA4 RID: 2980 RVA: 0x00043E10 File Offset: 0x00042010
	public override void Action(bool skip)
	{
		if (skip)
		{
			return;
		}
		if (this.file != null && this.file.Length > 0)
		{
			AudioClip audioClip = this.cutScene.LoadAsset<AudioClip>(this.file);
			if (audioClip != null)
			{
				this.cutScene.GC.audioCtrl.Play2DSE(audioClip);
			}
			else
			{
				GlobalData.Debug_LogError("看不出效果音:" + this.file);
			}
		}
	}

	// Token: 0x04000BD1 RID: 3025
	private string file;
}
